package com.yoj.model.dto.question;

import com.yoj.model.dto.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * 题目查询请求参数
 * 与 Question 相比，没有 submitNum、acceptedNum、judgeCase、judgeConfig 等字段。
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "题目查询请求参数")
public class QuestionQueryRequest extends PageRequest implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;

    /**
     * 标签列表（json 数组）
     */
    @ApiModelProperty(value = "标签列表（json 数组）")
    private List<String> tags;

    @ApiModelProperty(value = "题目答案")
    private String answer;

    @ApiModelProperty(value = "题目通过数")
    private Integer acceptedNum;

    @ApiModelProperty(value = "创建用户 id")
    private Long userId;

    private static final long serialVersionUID = 1L;
}